upgrade: Actually prune deployments again
authorColin Walters <walters@verbum.org>
Mon, 27 May 2013 13:29:05 +0000 (09:29 -0400)
committerColin Walters <walters@verbum.org>
Mon, 27 May 2013 13:29:05 +0000 (09:29 -0400)
That was a rather critical logic error...

src/ostree/ot-admin-builtin-upgrade.c

index 829e1beb5e76a9fda2d76e5fbe95f31ba4454d91..f13ce2186c8c1e845327d07fc8e8396a156b1c8b 100644 (file)
@@ -93,6 +93,7 @@ ot_admin_builtin_upgrade (int argc, char **argv, OtAdminBuiltinOpts *admin_opts,
                                       GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,
                                       cancellable, error,
                                       "ostree", "admin", ostree_dir_arg, "pull-deploy", osname, NULL))
+    goto out;
 
   if (!gs_subprocess_simple_run_sync (gs_file_get_path_cached (ostree_dir),
                                       GS_SUBPROCESS_STREAM_DISPOSITION_INHERIT,